﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Handrise.CDCable.Business
{
    /// <summary>
    /// 指挥信息
    /// </summary>
    [Serializable]
    [EntityMapping(ListName = "mtdPdacommunicationsms", EntityName = "MtdPdacommunicationsmData", DataType = 1, UploadListName = "mtdPdacommunicationsmList", UploadEntityName = "MtdPdacommunicationsmData")]
    public class Communication
    {
        [EntityMapping(ColumnName = "fid", UploadColumnName = "fid")]
        public string CommunicationID { get; set; }

        /// <summary>
        /// 发送者
        /// </summary>
        [EntityMapping(ColumnName = "sender", UploadColumnName = "sender")]
        public string Sender { get; set; }

        /// <summary>
        /// 接收者
        /// </summary>
        [EntityMapping(ColumnName = "receiver", UploadColumnName = "receiver")]
        public string Receiver { get; set; }

        /// <summary>
        /// 发送者ID
        /// </summary>
        [EntityMapping(ColumnName = "senderid", UploadColumnName = "senderid")]
        public string SenderID { get; set; }

        /// <summary>
        /// 接收者ID
        /// </summary>
        [EntityMapping(ColumnName = "receiverid", UploadColumnName = "receiverid")]
        public string ReceiverID { get; set; }

        /// <summary>
        /// 方向
        /// </summary>
        [EntityMapping(ColumnName = "direction", UploadColumnName = "direction")]
        public string Direction { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [EntityMapping(ColumnName = "content", UploadColumnName = "content")]
        public string Content { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        [EntityMapping(ColumnName = "sendtime", UploadColumnName = "sendtime")]
        public DateTime? RecordDateTime { get; set; }

        /// <summary>
        /// 上报状态
        /// </summary>
        public string ReportState { get; set; }
    }
}
